/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2021-06-08     Wangjiangbo       the first version
 */
#ifndef BSP_BSP_CRC_H_
#define BSP_BSP_CRC_H_

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */


#include <bsp/bsp.h>

uint16_t bsp_crc16(uint8_t * buf, int32_t count);

uint32_t bsp_crc32(uint8_t *buf, uint32_t len);

uint32_t bsp_crc32_step(uint32_t crc, uint8_t *buf, uint32_t len);

int bsp_crc_init(void);

#ifdef __cplusplus
}
#endif /* __cplusplus */


#endif /* BSP_BSP_CRC_H_ */
